<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta name="robots" content="noindex,nofollow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="layui/css/layui.css" />
<link rel="stylesheet" type="text/css" href="css/x.css"/>
<link rel="stylesheet" href="./css/font.css">
<title>系统账号管理</title>
<script src="js/common.js" type="text/javascript"></script>
<script src="js/main.js" type="text/javascript"></script>
<script src="layui/layui.js" type="text/javascript"></script>
</head>
<body>
<!--当前导航-->

<div class="layui-fluid">
  <div class="r_content pd15">
    <div style="overflow-x: auto">
      <div><a class="layui-btn layui-btn-sm" href="?action=new" title="新增管理员">新增&nbsp;&nbsp;<i class="iconfont">&#xe6b9;</i></a></div>
<form  method="post" name="managerform">
<table class="layui-table" style="min-width:1170px;">
  <TR style="background-color: #f6f6f6;"  align="center">
    <TD>ID</TD>
    <TD>用户名</TD>
  <TD>昵称</TD>
    <TD>最近登录时间</TD>
    <TD>最近登陆IP</TD>
    <TD>管理员级别</TD>
    <TD>状态</TD>
    <TD>操作</TD>
  </TR>
<?php
$sqlStr="select * from `sea_admin` order by logintime desc";
$dsql->SetQuery($sqlStr);
$dsql->Execute('manager_list');
while($row=$dsql->GetObject('manager_list'))
{
$aid=$row->id;
?>	
     <TR align="center"<?php if($id==$aid) echo " class=\"editlast\"";?>>
      <TD><input type="checkbox" value="<?php echo $aid;?>" name="e_id[]" class="checkbox" />&nbsp;<?php echo $aid;?></TD>
      <TD><?php echo $row->name;?></TD>
	  <TD><?php echo $row->nickname;?></TD>
      <TD><?php echo isCurrentDay($row->logintime);?>&nbsp;</TD>
      <TD><?php echo $row->loginip;?>&nbsp;</TD>
      <TD><?php echo getManagerLevel($row->groupid);?></TD>
      <TD><?php echo getManagerState($row->state);?></TD>
      <TD><a href="?action=edit&id=<?php echo $aid;?>">编辑</a>&nbsp;&nbsp;<a onclick="if(confirm('确定要删除吗')){return true;}else{return false;}"  href="?action=del&id=<?php echo $aid;?>">删除</font></TD>
    </TR>
<?php
}
?>
          <tr><td colspan="7"><label>全选&nbsp;&nbsp;<input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll(this.checked,'input','e_id[]')" /></label><label>&nbsp;&nbsp;反选&nbsp;&nbsp;<input type="checkbox" name="chkothers" id="chkothers" class="checkbox" onclick="checkOthers('input','e_id[]')" /></label>&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="批量删除" onclick="if(confirm('确定要批量删除吗')){managerform.action='?action=delall';}else{return false}" class="rb1"  />&nbsp;&nbsp;</td></tr>
</TABLE>
</form> 
</div>
</div>
</div>
</body>

</html>
